home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc™ Source Code / Storage / Bento / BentoHdr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-28  |  2.8 KB  |  127 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ODBentoHandlers.h
  3.  
  4.     Contains:    Header for ODBentoHandlers
  5.  
  6.     Written by:    Vincent Lo
  7.  
  8.     Copyright:    © 1993-1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <1>     5/27/94    VL        first checked in
  13.  
  14.     To Do:
  15. */
  16.  
  17. #ifndef _BENTOHDR_
  18. #define _BENTOHDR_
  19.  
  20. #ifndef _ODTYPES_
  21. #include "ODTypes.h"
  22. #endif
  23.  
  24. #ifndef __CM_API__
  25. #include "CMAPI.h"
  26. #endif
  27.  
  28. #ifndef _PLFMDEF_
  29. #include "PlfmDef.h"
  30. #endif
  31.  
  32. //==============================================================================
  33. // Classes defined in this interface
  34. //==============================================================================
  35. class ODBentoHandlers;
  36.  
  37. //==============================================================================
  38. // containerMetahandler
  39. //==============================================================================
  40.  
  41. CM_CFUNCTIONS
  42.  
  43. CMHandlerAddr CM_FIXEDARGS containerMetahandler(CMType targetType,
  44.                                                 CMconst_CMGlobalName operationType);
  45.  
  46. CM_END_CFUNCTIONS
  47.  
  48. //==============================================================================
  49. // ODFSContainer
  50. //==============================================================================
  51.  
  52. class ODBentoHandlers
  53. {
  54. public:
  55.     
  56.     ODBentoHandlers();
  57.     ODVMethod ~ODBentoHandlers();
  58.     
  59.     ODVMethod void Initialize()
  60.         = 0;
  61.         
  62.     ODVMethod CMSession GetCMSession()
  63.         = 0;
  64.     
  65.     ODVMethod CMRefCon OpenHandler(CMOpenMode mode)
  66.         = 0;
  67.         
  68.     ODVMethod void CloseHandler()
  69.         = 0;
  70.         
  71.     ODVMethod CMSize FlushHandler()
  72.         = 0;
  73.         
  74.     ODVMethod CMSize SeekHandler(CM_LONG posOff, CMSeekMode mode)
  75.         = 0;
  76.         
  77.     ODVMethod CMSize TellHandler()
  78.         = 0;
  79.         
  80.     ODVMethod CMSize ReadHandler(CMPtr buffer, CMSize elementSize, CMCount theCount)
  81.         = 0;
  82.         
  83.     ODVMethod CMSize WriteHandler(CMPtr buffer, CMSize elementSize, CMCount theCount)
  84.         = 0;
  85.         
  86.     ODVMethod CMEofStatus EOFHandler()
  87.         = 0;
  88.         
  89.     ODVMethod CMBoolean TruncHandler(CMSize containerSize)
  90.         = 0;
  91.         
  92.     ODVMethod CMSize ContainerSizeHandler()
  93.         = 0;
  94.         
  95.     ODVMethod void ReadLabelHandler(CMMagicBytes magicByteSequence,
  96.                         CMContainerFlags *flags, CM_USHORT *bufSize,
  97.                         CM_USHORT *majorVersion, CM_USHORT *minorVersion,
  98.                         CMSize *tocOffset, CMSize *tocSize)
  99.         = 0;
  100.         
  101.     ODVMethod void WriteLabelHandler(CMMagicBytes magicByteSequence,
  102.                         CMContainerFlags flags, CM_USHORT bufSize,
  103.                         CM_USHORT majorVersion, CM_USHORT minorVersion,
  104.                         CMSize tocOffset, CMSize tocSize)
  105.         = 0;
  106.         
  107.     ODVMethod CMValue ReturnParentValueHandler()
  108.         = 0;
  109.         
  110.     ODVMethod CM_UCHAR* ReturnContainerNameHandler()
  111.         = 0;
  112.         
  113.     ODVMethod CMType ReturnTargetTypeHandler(CMContainer container)
  114.         = 0;
  115.         
  116.     ODVMethod void ExtractDataHandler(CMDataBuffer buffer,
  117.                             CMSize size, CMPrivateData data)
  118.         = 0;
  119.         
  120.     ODVMethod void FormatDataHandler(CMDataBuffer buffer,
  121.                             CMSize size,
  122.                             CMPrivateData data)
  123.         = 0;
  124. };
  125.  
  126. #endif    // _BENTOHDR_
  127.